package generation;

import java.util.PriorityQueue;

public class IdFonction extends Ident {
	
	private String resultat;
	private int nbParam;
	private PriorityQueue<String> param;
	
	public IdFonction (String res, int nbP){
		resultat = res;
		nbParam = nbP;
		param = new PriorityQueue<String>();
	}
	
	
	@Override
	public boolean isConstante() {
		return false;
	}
	
	public void addParam(String type){
		nbParam++;
		param.add(type);
		
	}
	
	public PriorityQueue getParam(){
		return param;
	}
	
	public int getNbParam(){
		return nbParam;
	}
	
	public String getResultat(){
		return resultat;
	}
	
	

}
